package com.xxgc.eow.mapper;

import com.xxgc.eow.entity.Collecttopic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 收藏题目表 Mapper 接口
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-24
 */
@Mapper
public interface CollecttopicMapper extends BaseMapper<Collecttopic> {

    List<Collecttopic> getCollectTopicsByUserId(Integer userId);

    Integer insertCollectTopic(@Param("userId") Integer userId,@Param("topicId") Integer topicId);

    Integer deleteCollectTopic(@Param("userId") Integer userId,@Param("topicId") Integer topicId);

    List<Collecttopic> getAllCollectTopicsLimit(@Param("start") Integer start,@Param("pagesize") Integer pageSize);

    Integer selectCount();
}
